import { FormTemplate } from '../../Utils/FormTemp'

const Modify = ({ data, ModalEvent, Off }) => {
    const { columns, item } = data
    ModalEvent.useSubscription(val => { if (val.type === 'Modify') Off() })
    return (
        <div>
            <FormTemplate columns={columns} ModalEvent={ModalEvent} init={item} />
        </div>
    )
}

export default Modify